From: Adel Gadllah Date: Wed, 24 Mar 2010 16:34:30 +0000 (+0100) Subject: Fix build on x86_64 X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10249 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=468f30e4abee27a5d55bcd211bf6deea66f3fb36;p=gnome-shell.git Fix build on x86_64 A pointer does not equal to an int on x86_64 (which results into pointer - pointer not being an int either), fix that by casting the resulting value to an int. Breakage was introduced by commit 909b5ec43c6f5ce2f97c5860b983610ae3d6d053 --- diff --git a/src/st/st-widget.c b/src/st/st-widget.c index 01bee64fb..92e2d9a43 100644 --- a/src/st/st-widget.c +++ b/src/st/st-widget.c @@ -1514,7 +1514,7 @@ remove_class_name (gchar **class_list, else end++; - new_class_list = g_strdup_printf ("%.*s%s", match - *class_list, + new_class_list = g_strdup_printf ("%.*s%s", (int)(match - *class_list), *class_list, end); g_free (*class_list); *class_list = new_class_list;